PgGlyphString.indexToXFull

Converts from character position to x position.

This variant of [method@Pango.GlyphString.index_to_x] additionally accepts a PangoLogAttr array. The grapheme boundary information in it can be used to disambiguate positioning inside some complex clusters.

class PgGlyphString
void
indexToXFull

Parameters

text string

the text for the run

length int

the number of bytes (not characters) in @text.

analysis PangoAnalysis*

the analysis information return from [func@itemize]

attrs PangoLogAttr*

PangoLogAttr array for @text

index int

the byte index within @text

trailing bool

whether we should compute the result for the beginning (%FALSE) or end (%TRUE) of the character.

xPos int

location to store result

Meta

Since

1.50